package com.seari.service.impl;

import com.seari.entity.PlannedCurrentLimitation;
import com.seari.mapper.PlannedCurrentLimitationMapper;
import com.seari.service.PlannedCurrentLimitationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PlannedCurrentLimitationServiceImpl implements PlannedCurrentLimitationService {

    @Autowired
    private PlannedCurrentLimitationMapper plannedCurrentLimitationMapper;

    @Override
    public int insert(List<PlannedCurrentLimitation> resList) {
//        int res = plannedCurrentLimitationMapper.delete(resList.get(0));
//        if (res >= 0)
//        {
        return plannedCurrentLimitationMapper.insert(resList);
//        }else
//        {
//            return -1;
//        }

    }
}
